<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>欢迎登录</title>
    <link rel="stylesheet" th:href="@{/code/css/reset.css}">
    <link rel="stylesheet" th:href="@{/code/css/login.css}">
    <link rel="icon" th:href="@{/code/img/麋鹿.png}">
</head>
<body>
    <div class="container">
        <div class="window">
            <h2>
                <span>登陆</span>
            </h2>
            <div class="form-area">
                <form action="/user/login" method="post">
                    <div class="form-item">
                        <input type="text" name="name" placeholder="账号">
                    </div>
                    <div class="form-item">
                        <input type="password" name="password" placeholder="密码（6~16个字符组成，区分大小写）">
                    </div>
                    <div class="form-item">
                        <input type="submit" value="登陆">

                    </div>
                    <div class="tip clearfix">
                        <a th:href="@{/user/adduser}">没有账号，先去注册&gt;</a>
                    </div>
                    <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
                </form>

            </div>
        </div>
    </div>
</body>
</html>